import http from ".";

/**
 * 获取列表
 */
const fetchList = () => http.get("/grades");

/**
 * 添加
 */
const addItem = (name: string, rid: string, sid: string) =>
    http.post("/grades", { name, rid, sid });

export { fetchList, addItem };
